package org.com.f4.model;

import java.util.List;
import java.util.Map;

public class Page {
	
	private Integer pageSize;//每页显示的数据
	private Integer pageNum;//当前页
	private Integer total;//总条数
	private Integer totalPage;//总页数
	private List list;//返回的数据
	
	private Map<String,Object> params;

	public Integer getPageSize() {
		return pageSize;
	}

	public Page(Integer pageNum,Integer pageSize) {
		super();
		this.pageSize = pageSize;
		this.pageNum = pageNum;
	}

	public void setPageSize(Integer pageSize) {
		this.pageSize = pageSize;
	}

	public Integer getPageNum() {
		return pageNum;
	}

	public void setPageNum(Integer pageNum) {
		this.pageNum = pageNum;
	}

	public Integer getTotal() {
		return total;
	}

	public void setTotal(Integer total) {
		this.total = total;
		this.totalPage=this.total%this.pageSize==0?this.total/this.pageSize:(this.total/this.pageSize)+1;
		
	}

	public Page() {
		super();
	}

	public Integer getTotalPage() {
		return totalPage;
	}

	public void setTotalPage(Integer totalPage) {
		this.totalPage = totalPage;
	}

	public List<Map<String, Object>> getList() {
		return list;
	}

	public void setList(List<Map<String, Object>> list) {
		this.list = list;
	}

	public Map<String, Object> getParams() {
		return params;
	}

	public void setParams(Map<String, Object> params) {
		this.params = params;
	}
	
	
	
	

}
